package strangeattractor.equations;

import strangeattractor.core.DPoint;
import strangeattractor.core.Transformer;

public class PolyA implements Transformer {

	public double A, B, C;
	
	public PolyA(double a, double b, double c) {
		super();
		A = a;
		B = b;
		C = c;
	}

	@Override
	public DPoint next(DPoint p) {
		double xNew = A + p.y - p.z*p.y;
		double yNew = B + p.z - p.x*p.z;
		double zNew = C + p.x - p.x*p.y;
		return new DPoint(xNew, yNew, zNew);
	}

}
